<html><body><pre><%
props = new Properties()
props.setProperty('java.naming.factory.initial', 'org.jnp.interfaces.NamingContextFactory')
props.setProperty('java.naming.factory.url.pkgs', 'org.jboss.naming:org.jnp.interfaces')
ctx = new javax.naming.InitialContext(props)

tm = ctx.lookup("java:/TransactionManager")
out.println(tm)

out.println(tm.getStatus())
out.println(tm.getTransaction())

tm.begin()
out.println(tm.getStatus())
out.println(tm.getTransaction())

tm.commit()
out.println(tm.getStatus())
out.println(tm.getTransaction())

ctx.close()		
%></pre></body></html> 